﻿using System;
using com.echonest.api.v4;

namespace RequestEchoNest.Data
{
    internal class TrackInfoLoadedEventArgs : EventArgs
    {
        private MetadataModel _metadata;
        private Exception _error;

        public TrackInfoLoadedEventArgs(MetadataModel metadataModel)
        {
            _metadata = metadataModel;
        }

        public TrackInfoLoadedEventArgs(Exception error)
        {
            _error = error;
        }

        public MetadataModel Metadata
        {
            get { return _metadata; }
            set { _metadata = value; }
        }

        public Exception Error
        {
            get { return _error; }
            set { _error = value; }
        }
    }
}